// pages/profile/personal-center.scss
.personal-center {
  min-height: 100vh;
  background: #f5f5f5;

  .custom-nav {
    background: #fff;
    color: #333;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);

    .nav-content {
      display: flex;
      align-items: center;
      height: 88rpx;
      padding: 0 20rpx;

      .nav-back {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10rpx 20rpx 10rpx 10rpx;
        margin-right: 10rpx;
        
        &:active {
          opacity: 0.5;
        }
        
        .back-icon {
          width: 48rpx;
          height: 48rpx;
        }
      }

      .nav-title {
        flex: 1;
        text-align: center;
        font-size: 36rpx;
        font-weight: 600;
        color: #333;
        line-height: 88rpx;
      }

      .nav-placeholder {
        width: 68rpx;
      }
    }
  }

  .content {
    height: calc(100vh - 88rpx);
  }

  .avatar-section {
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
    padding: 64rpx 30rpx 48rpx;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.05);

    .avatar-wrapper {
      position: relative;
      width: 168rpx;
      height: 168rpx;
      margin-bottom: 24rpx;

      .avatar {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 6rpx solid rgba(102, 126, 234, 0.15);
      }

      .avatar-mask {
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.55);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.2s;

        .camera-icon {
          font-size: 48rpx;
          color: #fff;
          margin-bottom: 8rpx;
        }

        .upload-text {
          font-size: 22rpx;
          color: #fff;
        }
      }

      &:active .avatar-mask {
        opacity: 1;
      }
    }

    .nick-name {
      font-size: 38rpx;
      font-weight: 600;
      color: #333;
      margin-bottom: 10rpx;
    }

    .user-id {
      font-size: 24rpx;
      color: #999;
    }
  }

  .section {
    background: #fff;
    margin: 24rpx 0;
    padding: 32rpx;
    border-radius: 20rpx;
    box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.05);

    .section-title {
      font-size: 32rpx;
      font-weight: 600;
      color: #333;
      margin-bottom: 28rpx;
      padding-left: 16rpx;
      border-left: 6rpx solid #667eea;
    }
  }

  .info-list {
    .info-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 26rpx 0;
      border-bottom: 1rpx solid #f0f0f0;

      &:last-child {
        border-bottom: none;
      }

      .label {
        font-size: 28rpx;
        color: #666;
      }

      .value {
        font-size: 28rpx;
        color: #333;
        font-weight: 500;
        max-width: 420rpx;
        text-align: right;
        word-break: break-all;
      }
    }
  }

  .bottom-btn-section {
    padding: 40rpx 30rpx 80rpx;

    .edit-btn {
      width: 100%;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: #fff;
      border-radius: 16rpx;
      padding: 30rpx;
      font-size: 32rpx;
      font-weight: 600;
      box-shadow: 0 4rpx 12rpx rgba(102, 126, 234, 0.25);

      &::after {
        border: none;
      }
    }
  }
}
